<template>
  <div class="item-main">
    页面2
    <el-button
              :icon="User"
              type="primary"
              size="small"
              v-has="`btn:user:per:role`"
              @click="handleRole()"
            >
              查看
            </el-button>
  </div>
</template>

<script setup>
import { ref,onMounted} from 'vue'
import { useRouter } from "vue-router";
const router = useRouter();

const handleRole = () => {
  router.push({ path: "/other/page3", query: { id: 1231321 } });
  // router.push({ name: "Page3", params: { id: 21212 } });
}
</script>
<style scoped>
</style>